package com.tensquare.user.config;

import com.tensquare.utils.IdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: xxx
 * @Date: 2022/11/6 20:01
 * @Description: Id生成器配置类
 */
@Configuration
public class IdConfig {
    /**
     * ID生成器
     */
    @Bean
    public IdWorker createIdWorker(){
        return new IdWorker(1,1);
    }
    
}
